module.exports = class extends think.Logic {
  listAction() {
    this.rules = {
      goods_id: {
        required: true,
        aliasName: "商品编号"
      }
    };
  }
  addAction() {
    this.rules = {
      goods_id: {
        required: true,
        aliasName: "商品编号"
      }
    };
  }
  updateAction() {
    this.rules = {
      id: {
        required: true,
        aliasName: "编号"
      }
    };
  }
  delAction() {
    this.rules = {
      id: {
        required: true,
        aliasName: "编号"
      }
    };
  }
  detailAction() {
    this.rules = {
      id: {
        required: true,
        aliasName: "编号"
      }
    };
  }
  sumAction() {
    this.rules = {
      goods_id: {
        required: true,
        aliasName: "商品编号"
      },
      field: {
        required: true,
        aliasName: "字段"
      }
    };
  }
};
